home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-05-14 | 1.9 KB | 65 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="3"
- "COUNT"="1"
- "UIPATH"="Internet\Outlook Express\Appearance"
- "NAME"="Change Welcome Page"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Path:"
- "DATA 1"="HTML Documents (*.htm;*.html)|*.htm;*.html|All Files (*.*)|*.*"
- "DESCRIPTION 1"="Here you can use your own, custom start page for Outlook Express instead of the default one. Just type in the path above."
- "DESCRIPTION 2"="If you want to use the default page, just clear the field."
- "VERSION"="1.02"
- "AUTHOR"="Neil R. Turner (totalxs@hotmail.com) for Xteq Systems"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "CONTACTURL"="http://www.128moorlane.freeserve.co.uk/"
-
- 'Declaration of some constants
- sValPath=""
- sP1="HKCU\Software\Microsoft\Outlook Express\"
- sP2="HKCU\Identities\Last User ID"
- sVal="FrontPagePath"
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- 'OK, let's have a look if we are running IE5...
- s=RegReadValue(sP2)
- if IsEmpty(s)=false then
- 'OK - we have a value - check if we can find OE
- sValPath="HKCU\Identities\" & s & "\Software\Microsoft\Outlook Express\5.0\"
- If RegPathExists(sValPath) then
- 'OE5 !
- sValPath=sValPath '& sValue
- else
- sValPath=sP1 '& sValue
- end if
- else
- sValPath=sP1 '& sValue
- end if
-
-
- i=RegReadValue(sValPath & sVal)
- Call SetUIElement(1,i)
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)=0 then
- 'If values exists, delete it
- s=RegValueExists(sValPath & sVal)
- if s=true then
- Call RegDeleteValue(sValPath & sVal)
- end if
- else
- Call RegWriteValue(sValPath & sVal,s,1)
- end if
- END SUB
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-